package com.leyou.common.enums;

import lombok.Getter;

@Getter
public enum ExceptionEnum {
    PRICE_CANNOT_BE_NULL(400, "价格不能为空！"),
    DATA_TRANSFER_ERROR(204,"数据转换出错"),
    DATA_NOT_FOUND(204,"数据未能查到" ),
    INSERT_OPERATION_FAIL(400,"插入数据失败"),
    INVALID_FILE_TYPE(500,"不支持该文件格式" ),
    FILE_UPLOAD_ERROR(400,"文件上传失败" ),
    DATA_EDIT_FAIL(400,"数据修改失败" ),
    INVALID_PARAM_ERROR(500,"更新异常" ),
    DELETE_DATA_ERROR(500,"删除数据异常" ),
    DATA_UPDATE_ERROR(500,"数据更新异常" ),
    CATEGORY_NOT_FOUND(500,"未能找到对应的分类信息" );
    ;
    private int status;
    private String message;

    ExceptionEnum(int status, String message) {
        this.status = status;
        this.message = message;
    }
}
